package start;

import org.hibernate.dialect.MySQL5Dialect;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test04 {
    public Test04() {
        ApplicationContext context = new ClassPathXmlApplicationContext("META-INF\\beansHibernate.xml"); 
        SpitterDAO spitterDao = (SpitterDAO) context.getBean("hibernateSpitterDao");        
        spitterDao.addSpitter((Spitter) context.getBean("spitter"));
    }
}